package cn.wellsun.util.utildm1;
interface Gradable {
	public boolean gradeQuestion();
}
abstract public class Question {
	protected String text;
	protected String answer;
	protected String vettedOrTrial;
	/**
	 * Constructs a question with empty question and answer
	 */
	public Question(String vettedness) {
		text = "";
		answer = "";
		vettedOrTrial = vettedness;
	}
	/**
	 * Sets the question text.
	 * @param questionText the text of this question
	 */
	public void setText(String questionText) {
		text = questionText;
	}
	/**
	 * Sets the correct answer(s)
	 */
	public abstract void setAnswer(String answer);
	//    /**
	//     * Checks the answer(s)
	//     * @return true for correct, false otherwise
	//     */
	//    public abstract double checkAnswer(String answer);
	/**
	 * Returns the question text
	 */
	public String display() {
		return text;
	}
	public boolean gradeQuestion() {
		if (vettedOrTrial.equals("vetted")) {
			return true;
		}
		else {
			return false;
		}
	}
	public abstract double checkQuestion(String answer);
}
